package com.mskj.zxmy.service;

import com.mskj.zxmy.dto.ReportInfo;
import com.mskj.zxmy.dto.TaskDto;
import com.mskj.zxmy.entity.CollarList;
import com.mskj.zxmy.entity.RepositoryApplication;

import java.text.ParseException;

/**
 * 我的任务服务接口
 */
public interface MyTaskService {
    /**
     * 扫码查询工艺任务信息
     * @return
     */
    TaskDto queryTaskInfo(Integer orderId, Integer processId);

    /**
     * 开始工序任务
     * @param processTaskId
     * @return
     */
    String beginProcessTask(Integer processTaskId);

    /**
     * 查询工序报工信息
     * @param processTaskId
     * @return
     */
    ReportInfo getReportingWorks(Integer processTaskId);

    /**
     * 创建条码行为规则
     * @param processTaskId
     * @param barCodeId
     * @return
     */
    String batchQcAction(Integer processTaskId, Integer barCodeId);

    /**
     * 生产报工
     * @param reportInfo
     * @return
     */
    Boolean productReport(ReportInfo reportInfo) throws ParseException;

    /**
     * 领料信息回显
     * @param processTaskId
     * @return
     */
//    CollarList llBackInfo(Integer processTaskId);

    RepositoryApplication SQCKBackInfo(Integer processTaskId);

    /**
     * 领料单保存
     * @param repositoryApplication
     * @return
     */
//    Boolean lldSave(RepositoryApplication repositoryApplication);
    Boolean CKSQSave(RepositoryApplication repositoryApplication);
}
